<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //定义for循环 i依次变成0 1 2 3 所以执行四次
        for (let i = 0; i < 4; i++) {
            document.write(`这是第${i}次循环</br>`)
        }
    </script>
</body>

</html>